match x:
    case {'foo<caret>bar': 1}:
        pass